

#ifndef  __BIM_IFC_DATA_H
#define  __BIM_IFC_DATA_H

#include "GeomStructure.h"

namespace BIM_IFC_DATA
{
	enum FILTER_AXIS{ FA_X = 1, FA_Y, FA_Z, FA_DEFAULT };
	enum FILTER_DIR{ FD_POS = 1, FD_NEG, FD_DEFAULT };

	struct P_Instance
	{
		string					strProductName;
		int						nItemNum;
		bool					bIsRepetive;
		string					strUniqueName;
		double					transform[16];
		//vector<vector<PT3D>>	vvVer;
		//vector<vector<int>>		vvTriIdx;

		P_Instance()
		{
			strProductName = "";
			nItemNum = 0;
			bIsRepetive = false;
			strUniqueName = strProductName;
		}

		P_Instance( const char* lpszName, int nT )
			: strProductName( lpszName )
			, nItemNum( nT )
		{
			bIsRepetive = false;
			strUniqueName = strProductName;
		}

		static bool DescendByItemNum( const P_Instance& p0, const P_Instance& p1 )
		{
			return p0.nItemNum > p1.nItemNum;
		}
	};


}

#endif  //__BIM_IFC_DATA_H